package com.onstar.cn.mag;


/**
 * @ClassName: PlateEngineNumEntity
 * @Description: Plate Engine Number Entity
 * @author kai zhang
 * @date 2015/12/7
 */

import java.util.HashMap;

/**
 * Created by kai zhang on 2015/12/7.
 */
public class LocalVehicleEntity {
    private String vin;
    private String serviceName = "charge";
    private HashMap<ServiceType, Boolean> serviceSpec;

    public enum ServiceType {
        CHARGEINTERRUPTED("chargeInterrupted"),
        CHARGECOMPLETE("chargeComplete");
        private final String value;

        ServiceType(String v) {
            value = v;
        }

        public String value() {
            return value;
        }

        public static ServiceType fromValue(String v) {
            for (ServiceType c : ServiceType.values()) {
                if (c.value.equals(v)) {
                    return c;
                }
            }
            throw new IllegalArgumentException(v);
        }
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public HashMap<ServiceType, Boolean> getServiceSpec() {
        return serviceSpec;
    }

    public void setServiceSpec(HashMap<ServiceType, Boolean> serviceSpec) {
        this.serviceSpec = serviceSpec;
    }
}
